package com.tyc.blockqueue;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;

/**
 * linked
 *
 * @author tyc
 * @version 1.0
 * @date 2023-01-11 13:37:45
 */
public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        LinkedBlockingQueue<Object> linkedBlockingQueue = new LinkedBlockingQueue<>();
        linkedBlockingQueue.put("1");
        linkedBlockingQueue.offer("1",1, TimeUnit.SECONDS);
    }
}
